package com.qf.controller;

import com.qf.pojo.resp.BaseResult;
import com.qf.service.ImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class ImgController {
    @Autowired
    ImgService imgService;
    @RequestMapping("/imgurl")
    public BaseResult img(){
        BaseResult imgs = imgService.findAllImg();
        return imgs;
    }
}
